<?php

namespace App\Http\Controllers\YApi;

//use Illuminate\Http\Request;
use Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

use Session;
use Redirect;

use App\Models\UsersReg;
use App\Models\UsersAttrib;

class UserinfoController extends Controller
{

    public function userinfo($uid)
    {
        //用户信息
        $userinfo = UsersReg::find($uid);

        $userinfo['attrib'] = UsersAttrib::where('uid', $uid)->first();
        
        return $userinfo;
    }
    
}